package Day7;

public abstract class  Car {
    private String color;
    private String no;

    public Car(String color, String no) {
        this.color = color;
        this.no = no;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    public abstract void start();
    public abstract void jiashu();
    public abstract void shache();
    public void show(Car car){
        start();
        jiashu();
        shache();
        System.out.println("完成检修");
    }


}
